// 简化state取值，类似于window电脑上的快捷方式
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.profile.staffPhoto,
  name: state => state.user.profile.username,
  routes: state => state.permission.routes,
  theme: state => state.settings.theme
}

export default getters
